import request from '@/utils/request';
export const serviceHead = '/archives'; // 项目前缀

// 查询收货人信息列表
export function getListService (params) {
  return request({
    url: `${serviceHead}/consignee/list`,
    method: 'get',
    params
  });
}

// 查询收货人信息详细
export function getDetailService (id) {
  return request({
    url: `${serviceHead}/consignee/${id}`,
    method: 'get'
  });
}

// 新增收货人信息
export function addService (params) {
  return request({
    url: `${serviceHead}/consignee`,
    method: 'post',
    data: params
  });
}

// 修改收货人信息
export function updateService (params) {
  return request({
    url: `${serviceHead}/consignee`,
    method: 'put',
    data: params
  });
}

// 删除收货人信息
export function delService (id) {
  return request({
    url: `${serviceHead}/consignee/${id}`,
    method: 'delete'
  });
}